Developer --> Technical Publications

     


Handling the Display Notice Event Outside of an Event Loop

You may want your application to handle the Display Notice event as soon as it is issued instead of waiting for it to appear in the event queue. You can use the DMRegisterExtendedNotifyProc function to register a function to which the Display Manager directly sends the Display Notice event. By using DMRegisterExtendedNotifyProc , and by not setting the isHighLevelEventAware bit in the ' SIZE ' resource, you cause the Display Manager to send a Display Notice event directly to your handling function; your application or utility then receives no high-level Display Notice event.

To remove your Display Notice event-handling function, use the DMRemoveExtendedNotifyProc function.


© 2000 Apple Computer, Inc. (Last Updated 07 April 00)